package collection;


import java.util.*;


public class LinkedHashMapTest {
    public static void main(String[] args) {
        LinkedHashMap<Integer, String> linkedHashMap = new LinkedHashMap<Integer, String>(16, (float) 0.75, true);
        TreeMap<Integer, String> treeMap = new TreeMap<Integer, String>();
        linkedHashMap.put(1,"张");
        linkedHashMap.put(8,"li");
        linkedHashMap.put(5,"ww");
        linkedHashMap.remove(1);
        treeMap.get(1);
        treeMap.put(5,"ww");
        HashSet<Object> set = new HashSet<>();
        set.add(1);
        for (Map.Entry<Integer, String> map : linkedHashMap.entrySet()) {
            System.out.println(map);
        }

    }


}
